package com.zhangzhan.gulimallsearch.feign;

import com.zhangzhan.gulimallcommcon.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/6/25 9:02
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {


    @RequestMapping(value = "/gulimallproduct/attr/info/{attrId}",method = RequestMethod.GET)
    //@RequiresPermissions("gulimallproduct:attr:info")
    public R attrInfo(@PathVariable("attrId") Long attrId);

    @RequestMapping(value = "/gulimallproduct/brand/info/{brandId}",method = RequestMethod.GET)
    //@RequiresPermissions("gulimallproduct:brand:info")
    public R brandInfo(@PathVariable("brandId") Long brandId);

}
